<template>
  <div class="student">
    <h2>学生姓名: {{ name }}</h2>
    <h2>学生性别: {{ gender }}</h2>
  </div>
</template>

<script>
export default {
  name: "student-name",
  data() {
    return {
      name: "张三",
      gender: "男",
    };
  },
};
</script>

<style lang="less" scoped>
.student {
  background-color: orange;
  h2 {
    font-size: 50px;
    color: red;
  }
}
</style>
